<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('cate/index')}">商品分类</a></li>
        <li class="active"><a href="#">商品分类编辑</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('cate/edit')}"
          method="post">
          <input type="hidden" name="id" value="{$info['id']}">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">分类名称</label>
                            <div class="col-md-3 col-sm-5">
                                <select name="pid" class="form-control">
                                    <option <if condition="$info['pid'] eq 0"> selected </if> value="0">--顶级分类--</option>
                                    <foreach name="cate" item="vo">
                                    <option <if condition="$info['pid'] eq $vo['id']"> selected </if> value="{$vo.id}">--{$vo.name}--</option>
                                    </foreach>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">分类名称</label>
                            <div class="col-md-3 col-sm-5">
                                <input type="text" class="form-control" name="name"
                                       value="{$info['name']}">
                            </div>
                        </div>
                       
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" style="width:150px;" class="btn btn-primary">
                                    确认修改
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript" src="__STATIC__/js/frontend.js"></script>
</body>
</html>
